Skip to content

Fix seven npm dependency advisories in the TypeAgent workspace - #3294

Merged
robgruen merged 1 commit into
mainfrom
fix/sfi-npm-vulnerabilities
Nov 23, 2026
Merged

robgruen merged 1 commit into
mainfrom
fix/sfi-npm-vulnerabilities

Conversation

@robgruen

Copy link
Copy Markdown
Collaborator

This removes the vulnerable versions of four npm packages from the TypeAgent workspace. The seven advisories appeared as 22 findings: 11 advisory/version pairs, each reported through both the tracked lockfile and pnpm's project-store link.

Package Resolution
undici Update the affected 7.x copy from 7.29.1 to 7.30.1.
body-parser Update 1.20.6 to 1.20.9 without changing Express majors.
@azure/msal-node Update Azure Identity and its broker to releases that depend on patched MSAL Node (7.2.2), rather than forcing an unsupported major.
zod Consolidate on 4.6.7, migrate record schemas, and update TypeChat and the browser test runner to eliminate their Zod 3 dependencies.

The lockfile regression test checks every resolved version against the advisory ranges. The seven-day release-age policy, preview CSP, and 400 KiB preview size limit are unchanged; the English preview packages only its English validation messages.

Local verification: Frozen install, build of 107 affected packages, dependency regressions, formatting, and all four PR quality gates passed. The patched HTTP client/parser passed a loopback JSON round trip, and Azure Identity accepted both plugins without a sign-in.

Validation limits: Five live MCP integration scenarios require Claude authentication and could not complete locally. On Edge, 39/40 grammar UI component tests passed; the remaining test waits for .group-header, a selector also absent from the component on main.

The fixes are verified in the branch lockfile; scanner closure requires a scan of main after merge.

Upgrade the Azure Identity parents, HTTP packages and Zod consumers to supported patched versions. Keep the preview under its CSP-protected resource budget and test all reported advisory ranges.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@robgruen
robgruen enabled auto-merge November 23, 2026 19:01
@robgruen
robgruen disabled auto-merge November 23, 2026 19:56
@robgruen
robgruen merged commit 3b3bf42 into main Nov 23, 2026
109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants